package com.jgzx.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author libo
 * @date 2021/8/17 14:24
 */
@ApiModel(value = "单据追溯主表信息VO")
@Data
public class BillTraceBackHeadVO {

    @ApiModelProperty(value = "单据类别", required = true)
    private String bill_category;

    @ApiModelProperty(value = "单据类别名称", required = true)
    private String bill_category_name;

    @ApiModelProperty(value = "单据类型")
    private String bill_type;

    @ApiModelProperty(value = "单据类型名称")
    private String bill_type_name;

    @ApiModelProperty(value = "单据状态", required = true)
    private Integer bill_state;

    @ApiModelProperty(value = "单据状态名称", required = true)
    private String bill_state_name;

    @ApiModelProperty(value = "单据主表主键", required = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long hid;

    @ApiModelProperty(value = "单据号")
    private String bill_code;

    @ApiModelProperty(value = "单据日期")
    private Date bill_date;

    @ApiModelProperty(value = "创建人姓名")
    private String create_user_name;

    @ApiModelProperty(value = "单据追溯明细信息VO", notes = "没有明细表的单据，子表默认一条为主表信息")
    private List<BillTraceBackDetailVO> billTraceBackDetailVOs;

}
